package com.java.observer.jdk;

import java.util.Observable;
import java.util.Observer;

public class StudentObserver implements Observer {

    private String name;


    public StudentObserver(String name) {
        this.name = name;
    }

    @Override
    public void update(Observable o, Object arg) {
        System.out.println(name + "收到作业:" + arg);
    }
}
